#pragma once
class CFxThread
{
public:
	CFxThread(void);
	virtual ~CFxThread(void); 

	void Start();
	void Stop();

	virtual BOOL Prepare() { return TRUE; };
	virtual BOOL Complete() { return TRUE; };
	virtual void Run(void* This) {};

	static void ThreadFunc(void* param);

public:
#ifndef LINUX_NAS
	HANDLE m_handle;
#else
	pthread_t m_handle;
#endif

	BOOL isRunning;
	BOOL isExited;
	char moduleName[200];
	int m_sleepCount;
};
